
from util import get_mac_address

import logging
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
logger = logging.getLogger(__name__)

MAC = get_mac_address()

# MQTT_DATA_CENTER_HOST = "broker.emqx.io"
# MQTT_DATA_CENTER_PORT = 1883
MQTT_DATA_CENTER_HOST = "101.43.100.162"
MQTT_DATA_CENTER_PORT = 7083
MQTT_DATA_CENTER_USERNAME = ""
MQTT_DATA_CENTER_PASSWD = ""
MQTT_DATA_CENTER_SUBSCRIPTION_TOPIC = f"iot/devices/test/baina/{MAC}/allinone/rx"
MQTT_DATA_CENTER_PUBLISH_TOPIC = f"iot/devices/test/baina/{MAC}/allinone/tx"

# 主站MQTT
MQTT_LOCAL_HOST = "127.0.0.1"
MQTT_LOCAL_PORT = 1883
MQTT_LOCAL_SUBSCRIPTION_TOPIC = "base_station_publish_channel"
MQTT_LOCAL_PUBLISH_TOPIC = "main_station_publish_channel"
# MQTT_LOCAL_PUBLISH_TRANSCATIONS_TOPIC = "main_station_publish_transactions_channel" 
